package com.lagou.service;


import com.lagou.entity.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    //将来客户单要远程调用的方法
    public String sayHello(String msg) {
        System.out.println("are you ok ? " + msg);
        return "服务器返回数据 : " + msg;
    }

    public User findByName(String name) {
        System.out.println("根据名称查询用户信息：" + name);
        User user = new User();
        user.setName(name);
        user.setAge(20);
        user.setSex("男");
        return user;
    }
}
